<?php

namespace app\matter\model;

use think\Model;
use think\model\concern\SoftDelete;

class MatterDirectoryModel extends Model
{
    protected $table = 'm_matter_directory';
    use SoftDelete;
    protected $deleteTime = 'delete_time';

    //所属机构
    public function unit()
    {
        return $this->belongsTo(UnitModel::class,  'unit_id');
    }
    //所属区划
    public function area()
    {
        return $this->belongsTo(AreaModel::class,  'area_id');
    }

}
